package com.ufinity.estimation.persistence.domain;

/**
 * 
 * Description of the class
 * 
 * @author lxt
 * @version 1.0
 * @since 2011-4-7
 */
public class MaterialPrice implements java.io.Serializable {

    /**
     * serialVersionUID long
     */
    private static final long serialVersionUID = 3306584985226140865L;

    private long   id;
    
    private long   fixedTypeId;

    private String name;

    private String unit;

    private Float  suggestPrice;

    private Float  cost;

    private String specification;

    private String grade;

    private String madeIn;

    private String brand;

    private String remark;

    public MaterialPrice() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public MaterialPrice(long fixedTypeId, String name, String unit,
            Float suggestPrice, Float cost, String specification, String grade,
            String madeIn, String brand, String remark) {
        this.fixedTypeId = fixedTypeId;
        this.name = name;
        this.unit = unit;
        this.suggestPrice = suggestPrice;
        this.cost = cost;
        this.specification = specification;
        this.grade = grade;
        this.madeIn = madeIn;
        this.brand = brand;
        this.remark = remark;
    }

    public long getFixedTypeId() {
        return this.fixedTypeId;
    }

    public void setFixedTypeId(long fixedTypeId) {
        this.fixedTypeId = fixedTypeId;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUnit() {
        return this.unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Float getSuggestPrice() {
        return this.suggestPrice;
    }

    public void setSuggestPrice(Float suggestPrice) {
        this.suggestPrice = suggestPrice;
    }

    public Float getCost() {
        return this.cost;
    }

    public void setCost(Float cost) {
        this.cost = cost;
    }

    public String getSpecification() {
        return this.specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getGrade() {
        return this.grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getMadeIn() {
        return this.madeIn;
    }

    public void setMadeIn(String madeIn) {
        this.madeIn = madeIn;
    }

    public String getBrand() {
        return this.brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int hashCode() {
        int result = 17;

        result = 37 * result + (int) this.getFixedTypeId();
        result = 37 * result
                + (getName() == null ? 0 : this.getName().hashCode());
        result = 37 * result
                + (getUnit() == null ? 0 : this.getUnit().hashCode());
        result = 37
                * result
                + (getSuggestPrice() == null ? 0 : this.getSuggestPrice()
                        .hashCode());
        result = 37 * result
                + (getCost() == null ? 0 : this.getCost().hashCode());
        result = 37
                * result
                + (getSpecification() == null ? 0 : this.getSpecification()
                        .hashCode());
        result = 37 * result
                + (getGrade() == null ? 0 : this.getGrade().hashCode());
        result = 37 * result
                + (getMadeIn() == null ? 0 : this.getMadeIn().hashCode());
        result = 37 * result
                + (getBrand() == null ? 0 : this.getBrand().hashCode());
        result = 37 * result
                + (getRemark() == null ? 0 : this.getRemark().hashCode());
        return result;
    }
}
